﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebSecurity.Filters;

namespace SimpleMVCAuthentication.Controllers
{
    [Authorize]
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            ViewData.Add(new KeyValuePair<string, object>("User", System.Web.HttpContext.Current.User.Identity.Name));
            return View();
        }

    }
}
